package com.echat.serviceapigateway.security.service;

import com.echat.serviceapigateway.security.model.authentication.Token;

/**
 * Created by chenmohan on 2018/08/30
 *
 * @description
 */
public interface TokenService {

    Token getAccessToken(Long userId);

    Token getAccessToken(Token token);

    Token accquireAccessToken(String accessKey, String accessSecrect);

    Token refreshAccessToken(String accessKey, String refreshToken);

    Token InsertOrUpdateAccessToken(Long userId, String accessKey, Token token);

    Long getTTL(String accessToken);
}
